package hu.tortavar2.server;

import hu.tortavar2.client.AdminService;

import com.google.appengine.api.blobstore.BlobstoreService;
import com.google.appengine.api.blobstore.BlobstoreServiceFactory;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class AdminServiceImpl extends RemoteServiceServlet implements
		AdminService {

	BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
	
	@Override
	public String getBlobStoreUploadUrl() {
		return blobstoreService.createUploadUrl("/upload");
	}

	@Override
	public String getBlobStoreImageUploadUrl() {
		return blobstoreService.createUploadUrl("/imageupload");
	}

}
